.class public Lde/innosystec/unrar/unpack/ppm/c;
.super Lde/innosystec/unrar/unpack/ppm/d;
.source "PPMContext.java"


# static fields
.field private static final n:I

.field public static final o:I

.field public static final p:[I


# instance fields
.field private c:I

.field private final d:Lde/innosystec/unrar/unpack/ppm/a;

.field private final e:Lde/innosystec/unrar/unpack/ppm/i;

.field private f:I

.field private final g:Lde/innosystec/unrar/unpack/ppm/i;

.field private final h:Lde/innosystec/unrar/unpack/ppm/i;

.field private final i:Lde/innosystec/unrar/unpack/ppm/i;

.field private final j:Lde/innosystec/unrar/unpack/ppm/i;

.field private final k:Lde/innosystec/unrar/unpack/ppm/i;

.field private l:Lde/innosystec/unrar/unpack/ppm/c;

.field private final m:[I


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x6

    .line 1
    invoke-static {v0, v0}, Ljava/lang/Math;->max(II)I

    move-result v0

    sput v0, Lde/innosystec/unrar/unpack/ppm/c;->n:I

    add-int/lit8 v0, v0, 0x2

    add-int/lit8 v0, v0, 0x4

    .line 2
    sput v0, Lde/innosystec/unrar/unpack/ppm/c;->o:I

    const/16 v0, 0x10

    new-array v0, v0, [I

    .line 3
    fill-array-data v0, :array_0

    sput-object v0, Lde/innosystec/unrar/unpack/ppm/c;->p:[I

    return-void

    nop

    :array_0
    .array-data 4
        0x19
        0xe
        0x9
        0x7
        0x5
        0x5
        0x4
        0x4
        0x4
        0x3
        0x3
        0x3
        0x2
        0x2
        0x2
        0x2
    .end array-data
.end method

.method public constructor <init>([B)V
    .locals 2

    .line 1
    invoke-direct {p0, p1}, Lde/innosystec/unrar/unpack/ppm/d;-><init>([B)V

    .line 2
    new-instance v0, Lde/innosystec/unrar/unpack/ppm/i;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lde/innosystec/unrar/unpack/ppm/i;-><init>([B)V

    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->g:Lde/innosystec/unrar/unpack/ppm/i;

    .line 3
    new-instance v0, Lde/innosystec/unrar/unpack/ppm/i;

    invoke-direct {v0, v1}, Lde/innosystec/unrar/unpack/ppm/i;-><init>([B)V

    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->h:Lde/innosystec/unrar/unpack/ppm/i;

    .line 4
    new-instance v0, Lde/innosystec/unrar/unpack/ppm/i;

    invoke-direct {v0, v1}, Lde/innosystec/unrar/unpack/ppm/i;-><init>([B)V

    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->i:Lde/innosystec/unrar/unpack/ppm/i;

    .line 5
    new-instance v0, Lde/innosystec/unrar/unpack/ppm/i;

    invoke-direct {v0, v1}, Lde/innosystec/unrar/unpack/ppm/i;-><init>([B)V

    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->j:Lde/innosystec/unrar/unpack/ppm/i;

    .line 6
    new-instance v0, Lde/innosystec/unrar/unpack/ppm/i;

    invoke-direct {v0, v1}, Lde/innosystec/unrar/unpack/ppm/i;-><init>([B)V

    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->k:Lde/innosystec/unrar/unpack/ppm/i;

    .line 7
    iput-object v1, p0, Lde/innosystec/unrar/unpack/ppm/c;->l:Lde/innosystec/unrar/unpack/ppm/c;

    const/16 v0, 0x100

    new-array v0, v0, [I

    .line 8
    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->m:[I

    .line 9
    new-instance v0, Lde/innosystec/unrar/unpack/ppm/i;

    invoke-direct {v0, p1}, Lde/innosystec/unrar/unpack/ppm/i;-><init>([B)V

    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->e:Lde/innosystec/unrar/unpack/ppm/i;

    .line 10
    new-instance v0, Lde/innosystec/unrar/unpack/ppm/a;

    invoke-direct {v0, p1}, Lde/innosystec/unrar/unpack/ppm/a;-><init>([B)V

    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    return-void
.end method

.method private a(Lde/innosystec/unrar/unpack/ppm/b;Lde/innosystec/unrar/unpack/ppm/i;)I
    .locals 3

    .line 17
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->s()Lde/innosystec/unrar/unpack/ppm/k;

    move-result-object v0

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/k;->e()[B

    move-result-object v0

    invoke-direct {p0, v0}, Lde/innosystec/unrar/unpack/ppm/c;->b([B)Lde/innosystec/unrar/unpack/ppm/c;

    move-result-object v0

    .line 18
    invoke-virtual {p0}, Lde/innosystec/unrar/unpack/ppm/c;->e()I

    move-result v1

    invoke-virtual {v0, v1}, Lde/innosystec/unrar/unpack/ppm/c;->a(I)V

    .line 19
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->p()I

    move-result v1

    add-int/lit8 v1, v1, 0x0

    .line 20
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->l()[I

    move-result-object v2

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/c;->c()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    aget v0, v2, v0

    add-int/2addr v1, v0

    .line 21
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->j()I

    move-result v0

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->h()[I

    move-result-object v2

    invoke-virtual {p2}, Lde/innosystec/unrar/unpack/ppm/i;->e()I

    move-result p2

    aget p2, v2, p2

    mul-int/lit8 p2, p2, 0x2

    add-int/2addr v0, p2

    add-int/2addr v1, v0

    .line 22
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->q()I

    move-result p1

    ushr-int/lit8 p1, p1, 0x1a

    and-int/lit8 p1, p1, 0x20

    add-int/2addr v1, p1

    return v1
.end method

.method private b([B)Lde/innosystec/unrar/unpack/ppm/c;
    .locals 2

    .line 5
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->l:Lde/innosystec/unrar/unpack/ppm/c;

    if-nez v0, :cond_0

    .line 6
    new-instance v0, Lde/innosystec/unrar/unpack/ppm/c;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lde/innosystec/unrar/unpack/ppm/c;-><init>([B)V

    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->l:Lde/innosystec/unrar/unpack/ppm/c;

    .line 7
    :cond_0
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->l:Lde/innosystec/unrar/unpack/ppm/c;

    invoke-virtual {v0, p1}, Lde/innosystec/unrar/unpack/ppm/c;->a([B)Lde/innosystec/unrar/unpack/ppm/c;

    return-object v0
.end method

.method private c(Lde/innosystec/unrar/unpack/ppm/b;I)Lde/innosystec/unrar/unpack/ppm/h;
    .locals 6

    .line 34
    invoke-virtual {p0}, Lde/innosystec/unrar/unpack/ppm/c;->c()I

    move-result v0

    const/16 v1, 0x100

    if-eq v0, v1, :cond_3

    .line 35
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->i()[B

    move-result-object v1

    invoke-direct {p0, v1}, Lde/innosystec/unrar/unpack/ppm/c;->b([B)Lde/innosystec/unrar/unpack/ppm/c;

    move-result-object v1

    .line 36
    invoke-virtual {p0}, Lde/innosystec/unrar/unpack/ppm/c;->e()I

    move-result v2

    invoke-virtual {v1, v2}, Lde/innosystec/unrar/unpack/ppm/c;->a(I)V

    .line 37
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->m()[I

    move-result-object v2

    add-int/lit8 v3, p2, -0x1

    aget v2, v2, v3

    .line 38
    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/c;->c()I

    move-result v1

    sub-int/2addr v1, v0

    const/4 v3, 0x0

    const/4 v4, 0x1

    if-ge p2, v1, :cond_0

    const/4 v1, 0x1

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    add-int/2addr v1, v3

    .line 39
    iget-object v5, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v5}, Lde/innosystec/unrar/unpack/ppm/a;->c()I

    move-result v5

    mul-int/lit8 v0, v0, 0xb

    if-ge v5, v0, :cond_1

    const/4 v0, 0x1

    goto :goto_1

    :cond_1
    const/4 v0, 0x0

    :goto_1
    mul-int/lit8 v0, v0, 0x2

    add-int/2addr v1, v0

    .line 40
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->n()I

    move-result v0

    if-le v0, p2, :cond_2

    const/4 v3, 0x1

    :cond_2
    mul-int/lit8 v3, v3, 0x4

    add-int/2addr v1, v3

    .line 41
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->j()I

    move-result p2

    add-int/2addr v1, p2

    .line 42
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->r()[[Lde/innosystec/unrar/unpack/ppm/h;

    move-result-object p2

    aget-object p2, p2, v2

    aget-object p2, p2, v1

    .line 43
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->d()Lde/innosystec/unrar/unpack/ppm/e;

    move-result-object p1

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object p1

    invoke-virtual {p2}, Lde/innosystec/unrar/unpack/ppm/h;->a()I

    move-result v0

    int-to-long v0, v0

    invoke-virtual {p1, v0, v1}, Lde/innosystec/unrar/unpack/ppm/e$a;->c(J)V

    goto :goto_2

    .line 44
    :cond_3
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->e()Lde/innosystec/unrar/unpack/ppm/h;

    move-result-object p2

    .line 45
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->d()Lde/innosystec/unrar/unpack/ppm/e;

    move-result-object p1

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object p1

    const-wide/16 v0, 0x1

    invoke-virtual {p1, v0, v1}, Lde/innosystec/unrar/unpack/ppm/e$a;->c(J)V

    :goto_2
    return-object p2
.end method


# virtual methods
.method public a(III)I
    .locals 1

    sub-int p3, p2, p3

    const/4 v0, 0x1

    shl-int p3, v0, p3

    add-int/2addr p1, p3

    ushr-int/2addr p1, p2

    return p1
.end method

.method public a(Lde/innosystec/unrar/unpack/ppm/b;Lde/innosystec/unrar/unpack/ppm/i;Lde/innosystec/unrar/unpack/ppm/j;)I
    .locals 1

    .line 10
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->s()Lde/innosystec/unrar/unpack/ppm/k;

    move-result-object v0

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/k;->e()[B

    move-result-object v0

    invoke-direct {p0, v0}, Lde/innosystec/unrar/unpack/ppm/c;->b([B)Lde/innosystec/unrar/unpack/ppm/c;

    move-result-object v0

    .line 11
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->s()Lde/innosystec/unrar/unpack/ppm/k;

    move-result-object p1

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/k;->b()I

    move-result p1

    invoke-virtual {v0, p1}, Lde/innosystec/unrar/unpack/ppm/c;->a(I)V

    if-eqz v0, :cond_0

    const/4 p1, 0x1

    .line 12
    invoke-virtual {v0, p1}, Lde/innosystec/unrar/unpack/ppm/c;->b(I)V

    .line 13
    invoke-virtual {v0, p3}, Lde/innosystec/unrar/unpack/ppm/c;->a(Lde/innosystec/unrar/unpack/ppm/j;)V

    .line 14
    invoke-virtual {v0, p0}, Lde/innosystec/unrar/unpack/ppm/c;->a(Lde/innosystec/unrar/unpack/ppm/c;)V

    .line 15
    invoke-virtual {p2, v0}, Lde/innosystec/unrar/unpack/ppm/i;->a(Lde/innosystec/unrar/unpack/ppm/c;)V

    .line 16
    :cond_0
    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result p1

    return p1
.end method

.method public a([B)Lde/innosystec/unrar/unpack/ppm/c;
    .locals 1

    .line 1
    iput-object p1, p0, Lde/innosystec/unrar/unpack/ppm/d;->a:[B

    const/4 v0, 0x0

    .line 2
    iput v0, p0, Lde/innosystec/unrar/unpack/ppm/d;->b:I

    .line 3
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->e:Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {v0, p1}, Lde/innosystec/unrar/unpack/ppm/i;->a([B)Lde/innosystec/unrar/unpack/ppm/i;

    .line 4
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v0, p1}, Lde/innosystec/unrar/unpack/ppm/a;->a([B)Lde/innosystec/unrar/unpack/ppm/a;

    return-object p0
.end method

.method public a(I)V
    .locals 1

    .line 7
    invoke-super {p0, p1}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 8
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->e:Lde/innosystec/unrar/unpack/ppm/i;

    add-int/lit8 p1, p1, 0x2

    invoke-virtual {v0, p1}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 9
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v0, p1}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    return-void
.end method

.method public a(Lde/innosystec/unrar/unpack/ppm/b;)V
    .locals 14

    .line 23
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->g:Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->i()[B

    move-result-object v1

    invoke-virtual {v0, v1}, Lde/innosystec/unrar/unpack/ppm/i;->a([B)Lde/innosystec/unrar/unpack/ppm/i;

    .line 24
    iget-object v1, p0, Lde/innosystec/unrar/unpack/ppm/c;->e:Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v1

    invoke-virtual {v0, v1}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 25
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->h()[I

    move-result-object v1

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->g()Lde/innosystec/unrar/unpack/ppm/i;

    move-result-object v2

    invoke-virtual {v2}, Lde/innosystec/unrar/unpack/ppm/i;->e()I

    move-result v2

    aget v1, v1, v2

    invoke-virtual {p1, v1}, Lde/innosystec/unrar/unpack/ppm/b;->d(I)V

    .line 26
    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v1

    const/4 v2, 0x1

    sub-int/2addr v1, v2

    .line 27
    invoke-direct {p0, p1, v0}, Lde/innosystec/unrar/unpack/ppm/c;->a(Lde/innosystec/unrar/unpack/ppm/b;Lde/innosystec/unrar/unpack/ppm/i;)I

    move-result v3

    .line 28
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->b()[[I

    move-result-object v4

    aget-object v4, v4, v1

    aget v4, v4, v3

    .line 29
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->d()Lde/innosystec/unrar/unpack/ppm/e;

    move-result-object v5

    const/16 v6, 0xe

    invoke-virtual {v5, v6}, Lde/innosystec/unrar/unpack/ppm/e;->a(I)J

    move-result-wide v5

    int-to-long v7, v4

    const v9, 0xffff

    const/4 v10, 0x2

    const/4 v11, 0x7

    const/4 v12, 0x0

    cmp-long v13, v5, v7

    if-gez v13, :cond_1

    .line 30
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->g()Lde/innosystec/unrar/unpack/ppm/i;

    move-result-object v5

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v6

    invoke-virtual {v5, v6}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 31
    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v5

    const/16 v6, 0x80

    if-ge v5, v6, :cond_0

    const/4 v12, 0x1

    :cond_0
    invoke-virtual {v0, v12}, Lde/innosystec/unrar/unpack/ppm/i;->b(I)V

    .line 32
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->d()Lde/innosystec/unrar/unpack/ppm/e;

    move-result-object v0

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v0

    const-wide/16 v5, 0x0

    invoke-virtual {v0, v5, v6}, Lde/innosystec/unrar/unpack/ppm/e$a;->b(J)V

    .line 33
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->d()Lde/innosystec/unrar/unpack/ppm/e;

    move-result-object v0

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v0

    invoke-virtual {v0, v7, v8}, Lde/innosystec/unrar/unpack/ppm/e$a;->a(J)V

    add-int/lit16 v0, v4, 0x80

    .line 34
    invoke-virtual {p0, v4, v11, v10}, Lde/innosystec/unrar/unpack/ppm/c;->a(III)I

    move-result v4

    sub-int/2addr v0, v4

    and-int/2addr v0, v9

    .line 35
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->b()[[I

    move-result-object v4

    aget-object v1, v4, v1

    aput v0, v1, v3

    .line 36
    invoke-virtual {p1, v2}, Lde/innosystec/unrar/unpack/ppm/b;->g(I)V

    .line 37
    invoke-virtual {p1, v2}, Lde/innosystec/unrar/unpack/ppm/b;->b(I)V

    goto :goto_0

    .line 38
    :cond_1
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->d()Lde/innosystec/unrar/unpack/ppm/e;

    move-result-object v5

    invoke-virtual {v5}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v5

    invoke-virtual {v5, v7, v8}, Lde/innosystec/unrar/unpack/ppm/e$a;->b(J)V

    .line 39
    invoke-virtual {p0, v4, v11, v10}, Lde/innosystec/unrar/unpack/ppm/c;->a(III)I

    move-result v5

    sub-int/2addr v4, v5

    and-int/2addr v4, v9

    .line 40
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->b()[[I

    move-result-object v5

    aget-object v1, v5, v1

    aput v4, v1, v3

    .line 41
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->d()Lde/innosystec/unrar/unpack/ppm/e;

    move-result-object v1

    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v1

    const-wide/16 v5, 0x4000

    invoke-virtual {v1, v5, v6}, Lde/innosystec/unrar/unpack/ppm/e$a;->a(J)V

    .line 42
    sget-object v1, Lde/innosystec/unrar/unpack/ppm/c;->p:[I

    ushr-int/lit8 v3, v4, 0xa

    aget v1, v1, v3

    invoke-virtual {p1, v1}, Lde/innosystec/unrar/unpack/ppm/b;->e(I)V

    .line 43
    invoke-virtual {p1, v2}, Lde/innosystec/unrar/unpack/ppm/b;->f(I)V

    .line 44
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->c()[I

    move-result-object v1

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/i;->e()I

    move-result v0

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->f()I

    move-result v2

    aput v2, v1, v0

    .line 45
    invoke-virtual {p1, v12}, Lde/innosystec/unrar/unpack/ppm/b;->g(I)V

    .line 46
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->g()Lde/innosystec/unrar/unpack/ppm/i;

    move-result-object p1

    invoke-virtual {p1, v12}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    :goto_0
    return-void
.end method

.method public a(Lde/innosystec/unrar/unpack/ppm/b;I)V
    .locals 3

    .line 47
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->g()Lde/innosystec/unrar/unpack/ppm/i;

    move-result-object v0

    invoke-virtual {v0, p2}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 48
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->g()Lde/innosystec/unrar/unpack/ppm/i;

    move-result-object v0

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Lde/innosystec/unrar/unpack/ppm/i;->b(I)V

    .line 49
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v0, v1}, Lde/innosystec/unrar/unpack/ppm/a;->b(I)V

    .line 50
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->i:Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->i()[B

    move-result-object v1

    invoke-virtual {v0, v1}, Lde/innosystec/unrar/unpack/ppm/i;->a([B)Lde/innosystec/unrar/unpack/ppm/i;

    .line 51
    iget-object v1, p0, Lde/innosystec/unrar/unpack/ppm/c;->j:Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->i()[B

    move-result-object v2

    invoke-virtual {v1, v2}, Lde/innosystec/unrar/unpack/ppm/i;->a([B)Lde/innosystec/unrar/unpack/ppm/i;

    .line 52
    invoke-virtual {v0, p2}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    add-int/lit8 p2, p2, -0x6

    .line 53
    invoke-virtual {v1, p2}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 54
    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result p2

    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v2

    if-le p2, v2, :cond_0

    .line 55
    invoke-static {v0, v1}, Lde/innosystec/unrar/unpack/ppm/i;->a(Lde/innosystec/unrar/unpack/ppm/i;Lde/innosystec/unrar/unpack/ppm/i;)V

    .line 56
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->g()Lde/innosystec/unrar/unpack/ppm/i;

    move-result-object p2

    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v0

    invoke-virtual {p2, v0}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 57
    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result p2

    const/16 v0, 0x7c

    if-le p2, v0, :cond_0

    .line 58
    invoke-virtual {p0, p1}, Lde/innosystec/unrar/unpack/ppm/c;->d(Lde/innosystec/unrar/unpack/ppm/b;)V

    :cond_0
    return-void
.end method

.method public a(Lde/innosystec/unrar/unpack/ppm/c;)V
    .locals 0

    .line 6
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result p1

    invoke-virtual {p0, p1}, Lde/innosystec/unrar/unpack/ppm/c;->c(I)V

    return-void
.end method

.method public a(Lde/innosystec/unrar/unpack/ppm/j;)V
    .locals 1

    .line 5
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->e:Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {v0, p1}, Lde/innosystec/unrar/unpack/ppm/i;->a(Lde/innosystec/unrar/unpack/ppm/j;)V

    return-void
.end method

.method public b()Lde/innosystec/unrar/unpack/ppm/a;
    .locals 1

    .line 1
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    return-object v0
.end method

.method public final b(I)V
    .locals 2

    const v0, 0xffff

    and-int/2addr v0, p1

    .line 2
    iput v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->c:I

    .line 3
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/d;->a:[B

    if-eqz v0, :cond_0

    .line 4
    iget v1, p0, Lde/innosystec/unrar/unpack/ppm/d;->b:I

    int-to-short p1, p1

    invoke-static {v0, v1, p1}, Les/ap0;->a([BIS)V

    :cond_0
    return-void
.end method

.method public b(Lde/innosystec/unrar/unpack/ppm/b;I)V
    .locals 2

    .line 8
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->k:Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->i()[B

    move-result-object v1

    invoke-virtual {v0, v1}, Lde/innosystec/unrar/unpack/ppm/i;->a([B)Lde/innosystec/unrar/unpack/ppm/i;

    .line 9
    invoke-virtual {v0, p2}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 10
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->g()Lde/innosystec/unrar/unpack/ppm/i;

    move-result-object v1

    invoke-virtual {v1, p2}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 11
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->g()Lde/innosystec/unrar/unpack/ppm/i;

    move-result-object p2

    const/4 v1, 0x4

    invoke-virtual {p2, v1}, Lde/innosystec/unrar/unpack/ppm/i;->b(I)V

    .line 12
    iget-object p2, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {p2, v1}, Lde/innosystec/unrar/unpack/ppm/a;->b(I)V

    .line 13
    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result p2

    const/16 v0, 0x7c

    if-le p2, v0, :cond_0

    .line 14
    invoke-virtual {p0, p1}, Lde/innosystec/unrar/unpack/ppm/c;->d(Lde/innosystec/unrar/unpack/ppm/b;)V

    :cond_0
    const/4 p2, 0x1

    .line 15
    invoke-virtual {p1, p2}, Lde/innosystec/unrar/unpack/ppm/b;->a(I)V

    .line 16
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->k()I

    move-result p2

    invoke-virtual {p1, p2}, Lde/innosystec/unrar/unpack/ppm/b;->h(I)V

    return-void
.end method

.method public b(Lde/innosystec/unrar/unpack/ppm/b;)Z
    .locals 13

    .line 17
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->d()Lde/innosystec/unrar/unpack/ppm/e;

    move-result-object v0

    .line 18
    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v1

    iget-object v2, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v2}, Lde/innosystec/unrar/unpack/ppm/a;->c()I

    move-result v2

    int-to-long v2, v2

    invoke-virtual {v1, v2, v3}, Lde/innosystec/unrar/unpack/ppm/e$a;->c(J)V

    .line 19
    new-instance v1, Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->i()[B

    move-result-object v2

    invoke-direct {v1, v2}, Lde/innosystec/unrar/unpack/ppm/i;-><init>([B)V

    .line 20
    iget-object v2, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v2}, Lde/innosystec/unrar/unpack/ppm/a;->b()I

    move-result v2

    invoke-virtual {v1, v2}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 21
    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/e;->c()I

    move-result v2

    int-to-long v2, v2

    .line 22
    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v4

    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/e$a;->c()J

    move-result-wide v4

    const/4 v6, 0x0

    cmp-long v7, v2, v4

    if-ltz v7, :cond_0

    return v6

    .line 23
    :cond_0
    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v4

    int-to-long v7, v4

    const/4 v5, 0x1

    cmp-long v9, v2, v7

    if-gez v9, :cond_3

    .line 24
    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v2

    invoke-virtual {v2, v7, v8}, Lde/innosystec/unrar/unpack/ppm/e$a;->a(J)V

    mul-int/lit8 v2, v4, 0x2

    int-to-long v2, v2

    .line 25
    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v7

    invoke-virtual {v7}, Lde/innosystec/unrar/unpack/ppm/e$a;->c()J

    move-result-wide v7

    cmp-long v9, v2, v7

    if-lez v9, :cond_1

    const/4 v6, 0x1

    :cond_1
    invoke-virtual {p1, v6}, Lde/innosystec/unrar/unpack/ppm/b;->g(I)V

    .line 26
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->p()I

    move-result v2

    invoke-virtual {p1, v2}, Lde/innosystec/unrar/unpack/ppm/b;->b(I)V

    const/4 v2, 0x4

    add-int/2addr v4, v2

    .line 27
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->g()Lde/innosystec/unrar/unpack/ppm/i;

    move-result-object v3

    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v1

    invoke-virtual {v3, v1}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 28
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->g()Lde/innosystec/unrar/unpack/ppm/i;

    move-result-object v1

    invoke-virtual {v1, v4}, Lde/innosystec/unrar/unpack/ppm/i;->c(I)V

    .line 29
    iget-object v1, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v1, v2}, Lde/innosystec/unrar/unpack/ppm/a;->b(I)V

    const/16 v1, 0x7c

    if-le v4, v1, :cond_2

    .line 30
    invoke-virtual {p0, p1}, Lde/innosystec/unrar/unpack/ppm/c;->d(Lde/innosystec/unrar/unpack/ppm/b;)V

    .line 31
    :cond_2
    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object p1

    const-wide/16 v0, 0x0

    invoke-virtual {p1, v0, v1}, Lde/innosystec/unrar/unpack/ppm/e$a;->b(J)V

    return v5

    .line 32
    :cond_3
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->g()Lde/innosystec/unrar/unpack/ppm/i;

    move-result-object v7

    invoke-virtual {v7}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v7

    if-nez v7, :cond_4

    return v6

    .line 33
    :cond_4
    invoke-virtual {p1, v6}, Lde/innosystec/unrar/unpack/ppm/b;->g(I)V

    .line 34
    invoke-virtual {p0}, Lde/innosystec/unrar/unpack/ppm/c;->c()I

    move-result v7

    add-int/lit8 v8, v7, -0x1

    move v9, v8

    .line 35
    :cond_5
    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/i;->f()Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v10

    add-int/2addr v4, v10

    int-to-long v10, v4

    cmp-long v12, v10, v2

    if-gtz v12, :cond_7

    add-int/lit8 v9, v9, -0x1

    if-nez v9, :cond_5

    .line 36
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->h()[I

    move-result-object v2

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->g()Lde/innosystec/unrar/unpack/ppm/i;

    move-result-object v3

    invoke-virtual {v3}, Lde/innosystec/unrar/unpack/ppm/i;->e()I

    move-result v3

    aget v2, v2, v3

    invoke-virtual {p1, v2}, Lde/innosystec/unrar/unpack/ppm/b;->d(I)V

    .line 37
    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v2

    invoke-virtual {v2, v10, v11}, Lde/innosystec/unrar/unpack/ppm/e$a;->b(J)V

    .line 38
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->c()[I

    move-result-object v2

    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/i;->e()I

    move-result v3

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->f()I

    move-result v4

    aput v4, v2, v3

    .line 39
    invoke-virtual {p1, v7}, Lde/innosystec/unrar/unpack/ppm/b;->f(I)V

    .line 40
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->g()Lde/innosystec/unrar/unpack/ppm/i;

    move-result-object v2

    invoke-virtual {v2, v6}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 41
    :cond_6
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->c()[I

    move-result-object v2

    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/i;->b()Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/i;->e()I

    move-result v3

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->f()I

    move-result v4

    aput v4, v2, v3

    add-int/lit8 v8, v8, -0x1

    if-nez v8, :cond_6

    .line 42
    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object p1

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v0

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/e$a;->c()J

    move-result-wide v0

    invoke-virtual {p1, v0, v1}, Lde/innosystec/unrar/unpack/ppm/e$a;->a(J)V

    return v5

    .line 43
    :cond_7
    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v2

    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v3

    sub-int/2addr v4, v3

    int-to-long v3, v4

    invoke-virtual {v2, v3, v4}, Lde/innosystec/unrar/unpack/ppm/e$a;->b(J)V

    .line 44
    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v0

    invoke-virtual {v0, v10, v11}, Lde/innosystec/unrar/unpack/ppm/e$a;->a(J)V

    .line 45
    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v0

    invoke-virtual {p0, p1, v0}, Lde/innosystec/unrar/unpack/ppm/c;->a(Lde/innosystec/unrar/unpack/ppm/b;I)V

    return v5
.end method

.method public final c()I
    .locals 2

    .line 1
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/d;->a:[B

    if-eqz v0, :cond_0

    .line 2
    iget v1, p0, Lde/innosystec/unrar/unpack/ppm/d;->b:I

    invoke-static {v0, v1}, Les/ap0;->c([BI)S

    move-result v0

    const v1, 0xffff

    and-int/2addr v0, v1

    iput v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->c:I

    .line 3
    :cond_0
    iget v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->c:I

    return v0
.end method

.method public c(I)V
    .locals 2

    .line 4
    iput p1, p0, Lde/innosystec/unrar/unpack/ppm/c;->f:I

    .line 5
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/d;->a:[B

    if-eqz v0, :cond_0

    .line 6
    iget v1, p0, Lde/innosystec/unrar/unpack/ppm/d;->b:I

    add-int/lit8 v1, v1, 0x8

    invoke-static {v0, v1, p1}, Les/ap0;->c([BII)V

    :cond_0
    return-void
.end method

.method public c(Lde/innosystec/unrar/unpack/ppm/b;)Z
    .locals 12

    .line 7
    invoke-virtual {p0}, Lde/innosystec/unrar/unpack/ppm/c;->c()I

    move-result v0

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->n()I

    move-result v1

    sub-int/2addr v0, v1

    .line 8
    invoke-direct {p0, p1, v0}, Lde/innosystec/unrar/unpack/ppm/c;->c(Lde/innosystec/unrar/unpack/ppm/b;I)Lde/innosystec/unrar/unpack/ppm/h;

    move-result-object v1

    .line 9
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->d()Lde/innosystec/unrar/unpack/ppm/e;

    move-result-object v2

    .line 10
    iget-object v3, p0, Lde/innosystec/unrar/unpack/ppm/c;->g:Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->i()[B

    move-result-object v4

    invoke-virtual {v3, v4}, Lde/innosystec/unrar/unpack/ppm/i;->a([B)Lde/innosystec/unrar/unpack/ppm/i;

    .line 11
    iget-object v4, p0, Lde/innosystec/unrar/unpack/ppm/c;->h:Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->i()[B

    move-result-object v5

    invoke-virtual {v4, v5}, Lde/innosystec/unrar/unpack/ppm/i;->a([B)Lde/innosystec/unrar/unpack/ppm/i;

    .line 12
    iget-object v5, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v5}, Lde/innosystec/unrar/unpack/ppm/a;->b()I

    move-result v5

    add-int/lit8 v5, v5, -0x6

    invoke-virtual {v3, v5}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    .line 13
    :cond_0
    :goto_0
    invoke-virtual {v3}, Lde/innosystec/unrar/unpack/ppm/i;->f()Lde/innosystec/unrar/unpack/ppm/i;

    .line 14
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->c()[I

    move-result-object v8

    invoke-virtual {v3}, Lde/innosystec/unrar/unpack/ppm/i;->e()I

    move-result v9

    aget v8, v8, v9

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->f()I

    move-result v9

    if-eq v8, v9, :cond_0

    .line 15
    invoke-virtual {v3}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v8

    add-int/2addr v6, v8

    .line 16
    iget-object v8, p0, Lde/innosystec/unrar/unpack/ppm/c;->m:[I

    add-int/lit8 v9, v7, 0x1

    invoke-virtual {v3}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v10

    aput v10, v8, v7

    add-int/lit8 v0, v0, -0x1

    if-nez v0, :cond_5

    .line 17
    invoke-virtual {v2}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v0

    invoke-virtual {v0, v6}, Lde/innosystec/unrar/unpack/ppm/e$a;->a(I)V

    .line 18
    invoke-virtual {v2}, Lde/innosystec/unrar/unpack/ppm/e;->c()I

    move-result v0

    int-to-long v7, v0

    .line 19
    invoke-virtual {v2}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v0

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/e$a;->c()J

    move-result-wide v9

    cmp-long v0, v7, v9

    if-ltz v0, :cond_1

    return v5

    .line 20
    :cond_1
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->m:[I

    aget v0, v0, v5

    invoke-virtual {v3, v0}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    int-to-long v9, v6

    const/4 v11, 0x1

    cmp-long v0, v7, v9

    if-gez v0, :cond_3

    const/4 v0, 0x0

    .line 21
    :goto_1
    invoke-virtual {v3}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v4

    add-int/2addr v5, v4

    int-to-long v9, v5

    cmp-long v4, v9, v7

    if-gtz v4, :cond_2

    .line 22
    iget-object v4, p0, Lde/innosystec/unrar/unpack/ppm/c;->m:[I

    add-int/2addr v0, v11

    aget v4, v4, v0

    invoke-virtual {v3, v4}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    goto :goto_1

    .line 23
    :cond_2
    invoke-virtual {v2}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v0

    invoke-virtual {v0, v9, v10}, Lde/innosystec/unrar/unpack/ppm/e$a;->a(J)V

    .line 24
    invoke-virtual {v2}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v0

    invoke-virtual {v3}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v2

    sub-int/2addr v5, v2

    int-to-long v4, v5

    invoke-virtual {v0, v4, v5}, Lde/innosystec/unrar/unpack/ppm/e$a;->b(J)V

    .line 25
    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/h;->c()V

    .line 26
    invoke-virtual {v3}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v0

    invoke-virtual {p0, p1, v0}, Lde/innosystec/unrar/unpack/ppm/c;->b(Lde/innosystec/unrar/unpack/ppm/b;I)V

    goto :goto_2

    .line 27
    :cond_3
    invoke-virtual {v2}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v0

    invoke-virtual {v0, v9, v10}, Lde/innosystec/unrar/unpack/ppm/e$a;->b(J)V

    .line 28
    invoke-virtual {v2}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v0

    invoke-virtual {v2}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v3

    invoke-virtual {v3}, Lde/innosystec/unrar/unpack/ppm/e$a;->c()J

    move-result-wide v5

    invoke-virtual {v0, v5, v6}, Lde/innosystec/unrar/unpack/ppm/e$a;->a(J)V

    .line 29
    invoke-virtual {p0}, Lde/innosystec/unrar/unpack/ppm/c;->c()I

    move-result v0

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->n()I

    move-result v3

    sub-int/2addr v0, v3

    const/4 v7, -0x1

    const/4 v3, -0x1

    .line 30
    :cond_4
    iget-object v5, p0, Lde/innosystec/unrar/unpack/ppm/c;->m:[I

    add-int/2addr v3, v11

    aget v5, v5, v3

    invoke-virtual {v4, v5}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 31
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->c()[I

    move-result-object v5

    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/i;->e()I

    move-result v6

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->f()I

    move-result v8

    aput v8, v5, v6

    add-int/2addr v0, v7

    if-nez v0, :cond_4

    .line 32
    invoke-virtual {v2}, Lde/innosystec/unrar/unpack/ppm/e;->d()Lde/innosystec/unrar/unpack/ppm/e$a;

    move-result-object v0

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/e$a;->c()J

    move-result-wide v2

    long-to-int v0, v2

    invoke-virtual {v1, v0}, Lde/innosystec/unrar/unpack/ppm/h;->a(I)V

    .line 33
    invoke-virtual {p0}, Lde/innosystec/unrar/unpack/ppm/c;->c()I

    move-result v0

    invoke-virtual {p1, v0}, Lde/innosystec/unrar/unpack/ppm/b;->f(I)V

    :goto_2
    return v11

    :cond_5
    move v7, v9

    goto/16 :goto_0
.end method

.method public d()Lde/innosystec/unrar/unpack/ppm/i;
    .locals 1

    .line 1
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->e:Lde/innosystec/unrar/unpack/ppm/i;

    return-object v0
.end method

.method public d(Lde/innosystec/unrar/unpack/ppm/b;)V
    .locals 13

    .line 2
    invoke-virtual {p0}, Lde/innosystec/unrar/unpack/ppm/c;->c()I

    move-result v0

    invoke-virtual {p0}, Lde/innosystec/unrar/unpack/ppm/c;->c()I

    move-result v1

    const/4 v2, 0x1

    sub-int/2addr v1, v2

    .line 3
    new-instance v3, Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->i()[B

    move-result-object v4

    invoke-direct {v3, v4}, Lde/innosystec/unrar/unpack/ppm/i;-><init>([B)V

    .line 4
    new-instance v4, Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->i()[B

    move-result-object v5

    invoke-direct {v4, v5}, Lde/innosystec/unrar/unpack/ppm/i;-><init>([B)V

    .line 5
    new-instance v5, Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->i()[B

    move-result-object v6

    invoke-direct {v5, v6}, Lde/innosystec/unrar/unpack/ppm/i;-><init>([B)V

    .line 6
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->g()Lde/innosystec/unrar/unpack/ppm/i;

    move-result-object v6

    invoke-virtual {v6}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v6

    invoke-virtual {v4, v6}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 7
    :goto_0
    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v6

    iget-object v7, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v7}, Lde/innosystec/unrar/unpack/ppm/a;->b()I

    move-result v7

    if-eq v6, v7, :cond_0

    .line 8
    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v6

    add-int/lit8 v6, v6, -0x6

    invoke-virtual {v5, v6}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 9
    invoke-static {v4, v5}, Lde/innosystec/unrar/unpack/ppm/i;->a(Lde/innosystec/unrar/unpack/ppm/i;Lde/innosystec/unrar/unpack/ppm/i;)V

    .line 10
    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/i;->b()Lde/innosystec/unrar/unpack/ppm/i;

    goto :goto_0

    .line 11
    :cond_0
    iget-object v6, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v6}, Lde/innosystec/unrar/unpack/ppm/a;->b()I

    move-result v6

    invoke-virtual {v5, v6}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    const/4 v6, 0x4

    .line 12
    invoke-virtual {v5, v6}, Lde/innosystec/unrar/unpack/ppm/i;->b(I)V

    .line 13
    iget-object v7, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v7, v6}, Lde/innosystec/unrar/unpack/ppm/a;->b(I)V

    .line 14
    iget-object v6, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v6}, Lde/innosystec/unrar/unpack/ppm/a;->c()I

    move-result v6

    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v7

    sub-int/2addr v6, v7

    .line 15
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->o()I

    move-result v7

    if-eqz v7, :cond_1

    const/4 v7, 0x1

    goto :goto_1

    :cond_1
    const/4 v7, 0x0

    .line 16
    :goto_1
    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v8

    add-int/2addr v8, v7

    ushr-int/2addr v8, v2

    invoke-virtual {v4, v8}, Lde/innosystec/unrar/unpack/ppm/i;->c(I)V

    .line 17
    iget-object v8, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v9

    invoke-virtual {v8, v9}, Lde/innosystec/unrar/unpack/ppm/a;->d(I)V

    .line 18
    :cond_2
    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/i;->f()Lde/innosystec/unrar/unpack/ppm/i;

    .line 19
    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v8

    sub-int/2addr v6, v8

    .line 20
    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v8

    add-int/2addr v8, v7

    ushr-int/2addr v8, v2

    invoke-virtual {v4, v8}, Lde/innosystec/unrar/unpack/ppm/i;->c(I)V

    .line 21
    iget-object v8, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v9

    invoke-virtual {v8, v9}, Lde/innosystec/unrar/unpack/ppm/a;->b(I)V

    .line 22
    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v8

    add-int/lit8 v8, v8, -0x6

    invoke-virtual {v5, v8}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 23
    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v8

    invoke-virtual {v5}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v9

    if-le v8, v9, :cond_5

    .line 24
    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v8

    invoke-virtual {v3, v8}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 25
    new-instance v8, Lde/innosystec/unrar/unpack/ppm/j;

    invoke-direct {v8}, Lde/innosystec/unrar/unpack/ppm/j;-><init>()V

    .line 26
    invoke-virtual {v8, v3}, Lde/innosystec/unrar/unpack/ppm/j;->a(Lde/innosystec/unrar/unpack/ppm/i;)V

    .line 27
    new-instance v9, Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->i()[B

    move-result-object v10

    invoke-direct {v9, v10}, Lde/innosystec/unrar/unpack/ppm/i;-><init>([B)V

    .line 28
    new-instance v10, Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->i()[B

    move-result-object v11

    invoke-direct {v10, v11}, Lde/innosystec/unrar/unpack/ppm/i;-><init>([B)V

    .line 29
    :cond_3
    invoke-virtual {v3}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v11

    add-int/lit8 v11, v11, -0x6

    invoke-virtual {v9, v11}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 30
    invoke-virtual {v3, v9}, Lde/innosystec/unrar/unpack/ppm/i;->a(Lde/innosystec/unrar/unpack/ppm/i;)V

    .line 31
    invoke-virtual {v3}, Lde/innosystec/unrar/unpack/ppm/i;->b()Lde/innosystec/unrar/unpack/ppm/i;

    .line 32
    invoke-virtual {v3}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v11

    add-int/lit8 v11, v11, -0x6

    invoke-virtual {v10, v11}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 33
    invoke-virtual {v3}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v11

    iget-object v12, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v12}, Lde/innosystec/unrar/unpack/ppm/a;->b()I

    move-result v12

    if-eq v11, v12, :cond_4

    invoke-virtual {v8}, Lde/innosystec/unrar/unpack/ppm/j;->a()I

    move-result v11

    invoke-virtual {v10}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v12

    if-gt v11, v12, :cond_3

    .line 34
    :cond_4
    invoke-virtual {v3, v8}, Lde/innosystec/unrar/unpack/ppm/i;->a(Lde/innosystec/unrar/unpack/ppm/j;)V

    :cond_5
    add-int/lit8 v1, v1, -0x1

    if-nez v1, :cond_2

    .line 35
    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v3

    if-nez v3, :cond_8

    :cond_6
    add-int/2addr v1, v2

    .line 36
    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/i;->b()Lde/innosystec/unrar/unpack/ppm/i;

    .line 37
    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/i;->c()I

    move-result v3

    if-eqz v3, :cond_6

    add-int/2addr v6, v1

    .line 38
    invoke-virtual {p0}, Lde/innosystec/unrar/unpack/ppm/c;->c()I

    move-result v3

    sub-int/2addr v3, v1

    invoke-virtual {p0, v3}, Lde/innosystec/unrar/unpack/ppm/c;->b(I)V

    .line 39
    invoke-virtual {p0}, Lde/innosystec/unrar/unpack/ppm/c;->c()I

    move-result v1

    if-ne v1, v2, :cond_8

    .line 40
    new-instance v1, Lde/innosystec/unrar/unpack/ppm/j;

    invoke-direct {v1}, Lde/innosystec/unrar/unpack/ppm/j;-><init>()V

    .line 41
    iget-object v3, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v3}, Lde/innosystec/unrar/unpack/ppm/a;->b()I

    move-result v3

    invoke-virtual {v5, v3}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 42
    invoke-virtual {v1, v5}, Lde/innosystec/unrar/unpack/ppm/j;->a(Lde/innosystec/unrar/unpack/ppm/i;)V

    .line 43
    :cond_7
    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/j;->a()I

    move-result v3

    ushr-int/2addr v3, v2

    invoke-virtual {v1, v3}, Lde/innosystec/unrar/unpack/ppm/j;->a(I)V

    ushr-int/2addr v6, v2

    if-gt v6, v2, :cond_7

    .line 44
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->s()Lde/innosystec/unrar/unpack/ppm/k;

    move-result-object v3

    iget-object v4, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/a;->b()I

    move-result v4

    add-int/2addr v0, v2

    ushr-int/2addr v0, v2

    invoke-virtual {v3, v4, v0}, Lde/innosystec/unrar/unpack/ppm/k;->b(II)V

    .line 45
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->e:Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {v0, v1}, Lde/innosystec/unrar/unpack/ppm/i;->a(Lde/innosystec/unrar/unpack/ppm/j;)V

    .line 46
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->g()Lde/innosystec/unrar/unpack/ppm/i;

    move-result-object p1

    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->e:Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v0

    invoke-virtual {p1, v0}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    return-void

    :cond_8
    ushr-int/lit8 v1, v6, 0x1

    sub-int/2addr v6, v1

    .line 47
    iget-object v1, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v1, v6}, Lde/innosystec/unrar/unpack/ppm/a;->b(I)V

    add-int/2addr v0, v2

    ushr-int/2addr v0, v2

    .line 48
    invoke-virtual {p0}, Lde/innosystec/unrar/unpack/ppm/c;->c()I

    move-result v1

    add-int/2addr v1, v2

    ushr-int/2addr v1, v2

    if-eq v0, v1, :cond_9

    .line 49
    iget-object v2, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->s()Lde/innosystec/unrar/unpack/ppm/k;

    move-result-object v3

    iget-object v4, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v4}, Lde/innosystec/unrar/unpack/ppm/a;->b()I

    move-result v4

    invoke-virtual {v3, v4, v0, v1}, Lde/innosystec/unrar/unpack/ppm/k;->a(III)I

    move-result v0

    invoke-virtual {v2, v0}, Lde/innosystec/unrar/unpack/ppm/a;->c(I)V

    .line 50
    :cond_9
    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/b;->g()Lde/innosystec/unrar/unpack/ppm/i;

    move-result-object p1

    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/a;->b()I

    move-result v0

    invoke-virtual {p1, v0}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    return-void
.end method

.method public e()I
    .locals 2

    .line 1
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/d;->a:[B

    if-eqz v0, :cond_0

    .line 2
    iget v1, p0, Lde/innosystec/unrar/unpack/ppm/d;->b:I

    add-int/lit8 v1, v1, 0x8

    invoke-static {v0, v1}, Les/ap0;->b([BI)I

    move-result v0

    iput v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->f:I

    .line 3
    :cond_0
    iget v0, p0, Lde/innosystec/unrar/unpack/ppm/c;->f:I

    return v0
.end method

.method public toString()Ljava/lang/String;
    .locals 2

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "PPMContext["

    .line 2
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\n  pos="

    .line 3
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 4
    iget v1, p0, Lde/innosystec/unrar/unpack/ppm/d;->b:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, "\n  size="

    .line 5
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 6
    sget v1, Lde/innosystec/unrar/unpack/ppm/c;->o:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, "\n  numStats="

    .line 7
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 8
    invoke-virtual {p0}, Lde/innosystec/unrar/unpack/ppm/c;->c()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, "\n  Suffix="

    .line 9
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 10
    invoke-virtual {p0}, Lde/innosystec/unrar/unpack/ppm/c;->e()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, "\n  freqData="

    .line 11
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 12
    iget-object v1, p0, Lde/innosystec/unrar/unpack/ppm/c;->d:Lde/innosystec/unrar/unpack/ppm/a;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, "\n  oneState="

    .line 13
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 14
    iget-object v1, p0, Lde/innosystec/unrar/unpack/ppm/c;->e:Lde/innosystec/unrar/unpack/ppm/i;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, "\n]"

    .line 15
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 16
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
